<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    * {
        margin: 0;
        padding: 0;

    }

    ul {
        margin: 0;
        padding: 0;
        list-style: none;

    }

    a {
        text-decoration: none;
    }

    .header {
        width: 100%;
        min-width: 1024px;
        height: 60px;
        background-color: #000;

    }

    .header>ul {
        width: 100%;
        padding: 0 50px;
    }

    .header>ul>li {
        float: left;
        width: 150px;
        height: 100px;
    }

    li a {
        display: block;
        text-align: center;
        line-height: 60px;
        color: #fff;
    }

    li a:hover {
        color: #fd5;
    }

    .active {
        background-color: #333;
        color: #fd5;
    }
</style>

<body>
    <div class="header">
        <ul>
            <li><a href="#" class="active">首页</a></li>
            <li><a href="#">服务号</a></li>
            <li><a href="#">微课堂</a></li>
            <li><a href="#">直播课</a></li>
            <li><a href="#">系列课</a></li>
        </ul>
    </div>
</body>
<script></script>

</html>